.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;
.super Lcom/burstly/lib/util/SafeRunnable;
.source "RewardsView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->playVideo(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter

    .prologue
    .line 641
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iput-object p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->val$url:Ljava/lang/String;

    invoke-direct {p0, p2}, Lcom/burstly/lib/util/SafeRunnable;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    return-void
.end method


# virtual methods
.method public doRun()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 645
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "RewardsView"

    const-string v4, "Executing \'playVideo\' {0}"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->val$url:Ljava/lang/String;

    aput-object v6, v5, v7

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 646
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-nez v2, :cond_0

    .line 647
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 648
    .local v0, context:Landroid/content/Context;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-direct {v3, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    .line 649
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-direct {v3, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    .line 650
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v3, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->putIntoContainer(Landroid/view/View;)V

    .line 651
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setCloseClickListener(Landroid/view/View$OnClickListener;)V

    .line 652
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    const-wide/16 v3, 0xbb8

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setShowCloseButtonDelay(J)V

    .line 653
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->setVideoEventsListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView$IVideoEvents;)V

    .line 654
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v1

    .line 655
    .local v1, fillparentVal:I
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v3, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 656
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v3, v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 657
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->val$url:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->playVideo(Ljava/lang/String;)V

    .line 658
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v3, "videoOpened"

    new-array v4, v7, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 662
    .end local v0           #context:Landroid/content/Context;
    .end local v1           #fillparentVal:I
    :goto_0
    return-void

    .line 660
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v3, "couldNotPlayVideo"

    new-array v4, v7, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method
